import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description: 牛客网.简单题.小球走过路程计算
 */

class Main {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        float h=scanner.nextFloat();
        int n =scanner.nextInt();

        //write your code here......
        float sum = h;
        h /= 2;
        for(int i = 1; i < n; i++) {
            sum += h;
            h /= 2;
        }
        //输出格式为：System.out.println(String.format("%.3f", h)+" "+String.format("%.3f", sum));
        System.out.println(String.format("%.3f", h)+" "+String.format("%.3f", sum));

    }
}

public class Test {
}
